<template>
  <el-dialog
    width="80%"
    @open="handleOpen"
    @close="handleClose"
    title="详情"
    :visible="dialogVisible"
  >
    <el-form :model="detailData" label-width="80px" label-position="left">
      <el-row>
        <el-col :span="8">
          <el-form-item label="学校名">
            {{ detailData.name }}
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="创建时间">
            {{ detailData.createdAt | timeFilter }}
          </el-form-item>
        </el-col>
        <el-col :span="8">
          <el-form-item label="所在地区">
            {{ detailData.areaName }}
          </el-form-item>
        </el-col>
      </el-row>
      <div slot="footer">
        <el-button @click="handleClose">取 消</el-button>
      </div>
    </el-form>
  </el-dialog>
</template>

<script>
import detailDialog from "../../../mixins/detailDialog";

export default {
  name: "detailDialog",
  mixins: [detailDialog],
  data() {
    return {
      detailData: {
        name: "",
        areaName: "",
        createdAt: ""
      },
      getDetailUrl: "/api/school/school"
    };
  }
};
</script>

<style scoped></style>
